/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cms.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.cms.entity.JobGroup;
import com.thinkgem.jeesite.modules.cms.dao.JobGroupDao;
import com.thinkgem.jeesite.modules.sys.utils.UserUtils;

/**
 * 用户岗位组记录Service
 * @author leo
 * @version 2017-02-25
 */
@Service
@Transactional(readOnly = true)
public class JobGroupService extends CrudService<JobGroupDao, JobGroup> {

	public JobGroup get(String id) {
		return super.get(id);
	}
	
	public List<JobGroup> findList(JobGroup jobGroup) {
		return super.findList(jobGroup);
	}
	
	public Page<JobGroup> findPage(Page<JobGroup> page, JobGroup jobGroup) {
		return super.findPage(page, jobGroup);
	}
	
	public Page<JobGroup> findPageLimit(Page<JobGroup> page, JobGroup jobGroup) {
		jobGroup.setPage(page);
		page.setList(((JobGroupDao)dao).findListLimit(jobGroup));
		return page;
	}
	
	@Transactional(readOnly = false)
	public void save(JobGroup jobGroup) {
		super.save(jobGroup);
	}
	
	@Transactional(readOnly = false)
	public void delete(JobGroup jobGroup) {
		super.delete(jobGroup);
	}
	
}